package com.jk1123.us.core.transfer;

import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.runner.Runner;
import org.openjdk.jmh.runner.RunnerException;
import org.openjdk.jmh.runner.options.Options;
import org.openjdk.jmh.runner.options.OptionsBuilder;
import org.openjdk.jmh.runner.options.TimeValue;

import java.util.concurrent.TimeUnit;

/**
 * @author huyoufu <https://github.com/huyoufu>
 * @TIME 2021-09-03 00:57
 * @description
 */
public class BenchmarkStarter {
    public static void main(String[] args) throws RunnerException {
        Options options = new OptionsBuilder()
                .include(RadixTransferBenchmark.class.getSimpleName())
//                .forks(1)
//                .threads(2)
//                .timeUnit(TimeUnit.NANOSECONDS)
//                .warmupIterations(5)
//                .warmupTime(TimeValue.seconds(1))
//                .measurementIterations(5)
//                .measurementTime(TimeValue.seconds(1))
//                .mode(Mode.AverageTime)

                .build();

        new Runner(options).run();

    }
}
